{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Row-Shared ==============================\nvar genGridRowStyle = function genGridRowStyle(token) {\n  var componentCls = token.componentCls;\n  return _defineProperty({}, componentCls, {\n    display: 'flex',\n    flexFlow: 'row wrap',\n    minWidth: 0,\n    '&::before, &::after': {\n      display: 'flex'\n    },\n    '&-no-wrap': {\n      flexWrap: 'nowrap'\n    },\n    // The origin of the X-axis\n    '&-start': {\n      justifyContent: 'flex-start'\n    },\n    // The center of the X-axis\n    '&-center': {\n      justifyContent: 'center'\n    },\n    // The opposite of the X-axis\n    '&-end': {\n      justifyContent: 'flex-end'\n    },\n    '&-space-between': {\n      justifyContent: 'space-between'\n    },\n    '&-space-around ': {\n      justifyContent: 'space-around'\n    },\n    // Align at the top\n    '&-top': {\n      alignItems: 'flex-start'\n    },\n    // Align at the center\n    '&-middle': {\n      alignItems: 'center'\n    },\n    '&-bottom': {\n      alignItems: 'flex-end'\n    }\n  });\n};\n// ============================== Col-Shared ==============================\nvar genGridColStyle = function genGridColStyle(token) {\n  var componentCls = token.componentCls;\n  return _defineProperty({}, componentCls, {\n    position: 'relative',\n    maxWidth: '100%',\n    // Prevent columns from collapsing when empty\n    minHeight: 1\n  });\n};\nvar genLoopGridColumnsStyle = function genLoopGridColumnsStyle(token, sizeCls) {\n  var componentCls = token.componentCls,\n    gridColumns = token.gridColumns;\n  var gridColumnsStyle = {};\n  for (var i = gridColumns; i >= 0; i--) {\n    if (i === 0) {\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-\").concat(i)] = {\n        display: 'none'\n      };\n      gridColumnsStyle[\"\".concat(componentCls, \"-push-\").concat(i)] = {\n        insetInlineStart: 'auto'\n      };\n      gridColumnsStyle[\"\".concat(componentCls, \"-pull-\").concat(i)] = {\n        insetInlineEnd: 'auto'\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-push-\").concat(i)] = {\n        insetInlineStart: 'auto'\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-pull-\").concat(i)] = {\n        insetInlineEnd: 'auto'\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-offset-\").concat(i)] = {\n        marginInlineEnd: 0\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-order-\").concat(i)] = {\n        order: 0\n      };\n    } else {\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-\").concat(i)] = {\n        display: 'block',\n        flex: \"0 0 \".concat(i / gridColumns * 100, \"%\"),\n        maxWidth: \"\".concat(i / gridColumns * 100, \"%\")\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-push-\").concat(i)] = {\n        insetInlineStart: \"\".concat(i / gridColumns * 100, \"%\")\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-pull-\").concat(i)] = {\n        insetInlineEnd: \"\".concat(i / gridColumns * 100, \"%\")\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-offset-\").concat(i)] = {\n        marginInlineStart: \"\".concat(i / gridColumns * 100, \"%\")\n      };\n      gridColumnsStyle[\"\".concat(componentCls).concat(sizeCls, \"-order-\").concat(i)] = {\n        order: i\n      };\n    }\n  }\n  return gridColumnsStyle;\n};\nvar genGridStyle = function genGridStyle(token, sizeCls) {\n  return genLoopGridColumnsStyle(token, sizeCls);\n};\nvar genGridMediaStyle = function genGridMediaStyle(token, screenSize, sizeCls) {\n  return _defineProperty({}, \"@media (min-width: \".concat(screenSize, \"px)\"), Object.assign({}, genGridStyle(token, sizeCls)));\n};\n// ============================== Export ==============================\nexport var useRowStyle = genComponentStyleHook('Grid', function (token) {\n  return [genGridRowStyle(token)];\n});\nexport var useColStyle = genComponentStyleHook('Grid', function (token) {\n  var gridToken = mergeToken(token, {\n    gridColumns: 24 // Row is divided into 24 parts in Grid\n  });\n\n  var gridMediaSizesMap = {\n    '-sm': gridToken.screenSMMin,\n    '-md': gridToken.screenMDMin,\n    '-lg': gridToken.screenLGMin,\n    '-xl': gridToken.screenXLMin,\n    '-xxl': gridToken.screenXXLMin\n  };\n  return [genGridColStyle(gridToken), genGridStyle(gridToken, ''), genGridStyle(gridToken, '-xs'), Object.keys(gridMediaSizesMap).map(function (key) {\n    return genGridMediaStyle(gridToken, gridMediaSizesMap[key], key);\n  }).reduce(function (pre, cur) {\n    return Object.assign(Object.assign({}, pre), cur);\n  }, {})];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genGridRowStyle","token","componentCls","display","flexFlow","minWidth","flexWrap","justifyContent","alignItems","genGridColStyle","position","maxWidth","minHeight","genLoopGridColumnsStyle","sizeCls","gridColumns","gridColumnsStyle","i","insetInlineStart","insetInlineEnd","marginInlineEnd","order","flex","marginInlineStart","genGridStyle","genGridMediaStyle","screenSize","Object","assign","useRowStyle","useColStyle","gridToken","gridMediaSizesMap","screenSMMin","screenMDMin","screenLGMin","screenXLMin","screenXXLMin","keys","map","key","reduce","pre","cur"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/grid/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Row-Shared ==============================\nconst genGridRowStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    // Grid system\n    [componentCls]: {\n      display: 'flex',\n      flexFlow: 'row wrap',\n      minWidth: 0,\n      '&::before, &::after': {\n        display: 'flex'\n      },\n      '&-no-wrap': {\n        flexWrap: 'nowrap'\n      },\n      // The origin of the X-axis\n      '&-start': {\n        justifyContent: 'flex-start'\n      },\n      // The center of the X-axis\n      '&-center': {\n        justifyContent: 'center'\n      },\n      // The opposite of the X-axis\n      '&-end': {\n        justifyContent: 'flex-end'\n      },\n      '&-space-between': {\n        justifyContent: 'space-between'\n      },\n      '&-space-around ': {\n        justifyContent: 'space-around'\n      },\n      // Align at the top\n      '&-top': {\n        alignItems: 'flex-start'\n      },\n      // Align at the center\n      '&-middle': {\n        alignItems: 'center'\n      },\n      '&-bottom': {\n        alignItems: 'flex-end'\n      }\n    }\n  };\n};\n// ============================== Col-Shared ==============================\nconst genGridColStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    // Grid system\n    [componentCls]: {\n      position: 'relative',\n      maxWidth: '100%',\n      // Prevent columns from collapsing when empty\n      minHeight: 1\n    }\n  };\n};\nconst genLoopGridColumnsStyle = (token, sizeCls) => {\n  const {\n    componentCls,\n    gridColumns\n  } = token;\n  const gridColumnsStyle = {};\n  for (let i = gridColumns; i >= 0; i--) {\n    if (i === 0) {\n      gridColumnsStyle[`${componentCls}${sizeCls}-${i}`] = {\n        display: 'none'\n      };\n      gridColumnsStyle[`${componentCls}-push-${i}`] = {\n        insetInlineStart: 'auto'\n      };\n      gridColumnsStyle[`${componentCls}-pull-${i}`] = {\n        insetInlineEnd: 'auto'\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-push-${i}`] = {\n        insetInlineStart: 'auto'\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-pull-${i}`] = {\n        insetInlineEnd: 'auto'\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-offset-${i}`] = {\n        marginInlineEnd: 0\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-order-${i}`] = {\n        order: 0\n      };\n    } else {\n      gridColumnsStyle[`${componentCls}${sizeCls}-${i}`] = {\n        display: 'block',\n        flex: `0 0 ${i / gridColumns * 100}%`,\n        maxWidth: `${i / gridColumns * 100}%`\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-push-${i}`] = {\n        insetInlineStart: `${i / gridColumns * 100}%`\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-pull-${i}`] = {\n        insetInlineEnd: `${i / gridColumns * 100}%`\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-offset-${i}`] = {\n        marginInlineStart: `${i / gridColumns * 100}%`\n      };\n      gridColumnsStyle[`${componentCls}${sizeCls}-order-${i}`] = {\n        order: i\n      };\n    }\n  }\n  return gridColumnsStyle;\n};\nconst genGridStyle = (token, sizeCls) => genLoopGridColumnsStyle(token, sizeCls);\nconst genGridMediaStyle = (token, screenSize, sizeCls) => ({\n  [`@media (min-width: ${screenSize}px)`]: Object.assign({}, genGridStyle(token, sizeCls))\n});\n// ============================== Export ==============================\nexport const useRowStyle = genComponentStyleHook('Grid', token => [genGridRowStyle(token)]);\nexport const useColStyle = genComponentStyleHook('Grid', token => {\n  const gridToken = mergeToken(token, {\n    gridColumns: 24 // Row is divided into 24 parts in Grid\n  });\n\n  const gridMediaSizesMap = {\n    '-sm': gridToken.screenSMMin,\n    '-md': gridToken.screenMDMin,\n    '-lg': gridToken.screenLGMin,\n    '-xl': gridToken.screenXLMin,\n    '-xxl': gridToken.screenXXLMin\n  };\n  return [genGridColStyle(gridToken), genGridStyle(gridToken, ''), genGridStyle(gridToken, '-xs'), Object.keys(gridMediaSizesMap).map(key => genGridMediaStyle(gridToken, gridMediaSizesMap[key], key)).reduce((pre, cur) => Object.assign(Object.assign({}, pre), cur), {})];\n});"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE;AACA,IAAMC,eAAe,GAAG,SAAlBA,eAAe,CAAGC,KAAK,EAAI;EAC/B,IACEC,YAAY,GACVD,KAAK,CADPC,YAAY;EAEd,2BAEGA,YAAY,EAAG;IACdC,OAAO,EAAE,MAAM;IACfC,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE,CAAC;IACX,qBAAqB,EAAE;MACrBF,OAAO,EAAE;IACX,CAAC;IACD,WAAW,EAAE;MACXG,QAAQ,EAAE;IACZ,CAAC;IACD;IACA,SAAS,EAAE;MACTC,cAAc,EAAE;IAClB,CAAC;IACD;IACA,UAAU,EAAE;MACVA,cAAc,EAAE;IAClB,CAAC;IACD;IACA,OAAO,EAAE;MAC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